<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class WxPostsGoods extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'wx_posts_goods';
    public $timestamps = false;


    public function addAll(Array $data)
    {
        $rs = DB::table($this->getTable())->insert($data);
        return $rs;
    }

}
